class CustomerBean {
  int? id;
  int? saveOrSubmit;
  String? customerName;
  int? period;
  String? phoneNumber;
  String? idNumber;
  List<int>? idNumberPositive;
  List<int>? idNumberNegative;
  String? bankCardNumber;
  String? bankName;
  String? buildingAddress;
  String? remarks;
  String? longitude;
  String? latitude;
  List<int>? bankCardPhoto;
  List<int>? houseTitleCertificate;
  List<int>? gatePhoto;
  List<int>? panoramicPhoto;
  List<int>? other;

  CustomerBean(
      {this.id,
        this.customerName,
        this.period,
        this.phoneNumber,
        this.idNumber,
        this.idNumberPositive,
        this.idNumberNegative,
        this.bankCardNumber,
        this.bankName,
        this.buildingAddress,
        this.remarks,
        this.latitude,
        this.longitude,
        this.bankCardPhoto,
        this.houseTitleCertificate,
        this.gatePhoto,
        this.panoramicPhoto,
        this.other,this.saveOrSubmit});

  CustomerBean.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    saveOrSubmit = json['saveOrSubmit'];
    period = json['period'];
    customerName = json['customerName'];
    phoneNumber = json['phoneNumber'];
    idNumber = json['idNumber'];
    longitude = json['longitude'];
    latitude = json['latitude'];
    if(json['idNumberPositive'] != null){
      idNumberPositive = json['idNumberPositive'].cast<int>();
    }
    if(json['idNumberNegative'] != null){
      idNumberNegative = json['idNumberNegative'].cast<int>();
    }
    bankCardNumber = json['bankCardNumber'];
    bankName = json['bankName'];
    buildingAddress = json['buildingAddress'];
    remarks = json['remarks'];
    if(json['houseTitleCertificate'] != null){
      houseTitleCertificate = json['houseTitleCertificate'].cast<int>();
    }
    if(json['gatePhoto'] != null){
      gatePhoto = json['gatePhoto'].cast<int>();
    }
    if(json['panoramicPhoto'] != null){
      panoramicPhoto = json['panoramicPhoto'].cast<int>();
    }
    if(json['bankCardPhoto'] != null){
      bankCardPhoto = json['bankCardPhoto'].cast<int>();
    }
    if(json['other'] != null){
      other = json['other'].cast<int>();
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['customerName'] = this.customerName;
    data['period'] = this.period;
    data['phoneNumber'] = this.phoneNumber;
    data['idNumber'] = this.idNumber;
    data['idNumberPositive'] = this.idNumberPositive;
    data['idNumberNegative'] = this.idNumberNegative;
    data['bankCardNumber'] = this.bankCardNumber;
    data['bankName'] = this.bankName;
    data['buildingAddress'] = this.buildingAddress;
    data['remarks'] = this.remarks;
    data['houseTitleCertificate'] = this.houseTitleCertificate;
    data['gatePhoto'] = this.gatePhoto;
    data['panoramicPhoto'] = this.panoramicPhoto;
    data['bankCardPhoto'] = this.bankCardPhoto;
    data['other'] = this.other;
    data['longitude'] = this.longitude;
    data['latitude'] = this.latitude;
    data['saveOrSubmit'] = this.saveOrSubmit;
    return data;
  }
}
